package com.atguigu.structure.proxy.dynamicproxy;


public class DynamicProxyClient {
    public static void main(String[] args) {
        ITeacherDao teacherDao = new TeacherDao();
        ITeacherDao proxy = (ITeacherDao) new ProxyFactory(teacherDao).getProxyInstance();

        proxy.teach();
    }
}
